package com.zhoukai.controller.doctor;

import com.zhoukai.domain.User;
import com.zhoukai.service.UserService;
import com.zhoukai.vo.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: zk
 * @Date: 2022/02/21/17:07
 * @Description:
 */
@RestController
@RequestMapping("doctor/scheduling")
public class SchedulingController {
    @Autowired
    private UserService userService;

    public AjaxResult queryUsersNeedScheduling(Long deptId){
        List<User> users=this.userService.queryUsersNeedScheduling(null,deptId);
        return AjaxResult.success(users);

    }
}
